package com.shigen.demo.bean;

import java.io.Serializable;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class PageRequest implements Serializable {

  @Range(min = 0, message = "起始页码参数错误")
  private long pagenum;
  @Range(min = 0, message = "页面大小参数错误")
  private long pagesize;
}
